﻿using MediatR;
using Medical.Domain.DepartmentInfo;
using Medical.ErrorCode;
using System.ComponentModel.DataAnnotations;
namespace Medical.Api.Write.Application.Command.DepartmentManagement.Adopted
{
    /// <summary>
    /// 修改领用申请和物品命令
    /// </summary>
    public class UpdateAdoptedCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 要修改的领用申请实体
        /// </summary>
        [Required(ErrorMessage = "领用申请数据不能为空")]
        public TouseTable touseTable { get; set; }

        /// <summary>
        /// 要修改的物品表实体集合
        /// </summary>
        public List<ItemTable> itemTables { get; set; }
    }
}
